<?php /* Smarty version Smarty3-RC3, created on 2013-10-10 13:14:54
         compiled from ".\templates\partyList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:254035256a84e17aee0-65896018%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3090d7d170810959db1b1d2c7128193127e292cd' => 
    array (
      0 => '.\\templates\\partyList.tpl',
      1 => 1322721486,
    ),
  ),
  'nocache_hash' => '254035256a84e17aee0-65896018',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_GET['print']!=1){?>
  <?php $_template = new Smarty_Internal_Template("header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }else{ ?>
  <?php $_template = new Smarty_Internal_Template("headerPrint.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }?>

<script language="javascript">
function operations(operation)
{
	total_ids1=document.form1.total_ids.value;
	
	total_ids1=total_ids1.split(",");
	var objname,cnt=0;
	for(i=0;i<=total_ids1.length-2;i++)
	{
		objname=eval("document.form1.C1_" + total_ids1[i] + ".checked");
		if(objname==true)	
		{
			cnt=1;
		}
	}
	if(cnt==1)
	{
	  	if(operation=='delete' && window.confirm("Warning: Are you sure?\nDeletion is permanent. Continue anyway."))
	   	{
	   		document.form1.action="partyDelete.php?mode=delete&wp=1"
				document.form1.submit();
			return;
	   	}
	}
	else
	{
		alert("Please Check at least one check box");
	}
}      
function conf(partyId)
{
	if(confirm("Are You Sure You want to Delete Record?"))
			location.href="partyDelete.php?partyId="+partyId;
	else
  		location.href="partyList.php";
}
//single checkbox operation
function operations_private(operation,id)
{
	total_ids1=document.form1.total_ids1.value;
	total_ids1=total_ids1.split(",");
	var objname;
	for(i=0;i<=total_ids1.length-2;i++)
	{
		if(total_ids1[i] == id)
		{
		objname="document.form1.C1_" + total_ids1[i] + ".checked=true";
		}
		else
		{
		objname="document.form1.C1_" + total_ids1[i] + ".checked=false";
		}
		if(objname != "document.form1.C1_0.checked=false")
		{
		eval(objname); //is used to execute dynamic javascript code
		}
	}

	//calling the submit pocedure
	operations(operation);
}
function checkall()
{
	total_ids=document.form1.total_ids.value;
	total_ids=total_ids.split(",");
	var objname;
	for(i=0;i<=total_ids.length-2;i++)
	{
		objname="document.form1.C1_"+ total_ids[i] + ".checked=true";
		
		if(objname != "document.form1.C1_0.checked=true")
		{
			eval(objname); //is used to execute dynamic javascript code
		}
	}
}

//function to uncheck all checkboxes
function checknone()
{
	total_ids=document.form1.total_ids.value;
	total_ids=total_ids.split(",");
	var objname;
	for(i=0;i<=total_ids.length-2;i++)
	{
		objname="document.form1.C1_" + total_ids[i] + ".checked=false";
		if(objname != "document.form1.C1_0.checked=false")
		{
			eval(objname); //is used to execute dynamic javascript code
		}
	}
}
</script>
      
<form name="form1">
<table border="0" align="center" cellpadding="1" cellspacing="1">
<?php if ($_smarty_tpl->getVariable('i')->value==0){?>
  <?php echo $_smarty_tpl->getVariable('msg')->value;?>

<?php }else{ ?>
<center class="center"><B><?php echo $_smarty_tpl->getVariable('l_listParty')->value;?>
<b></center><br>
	<tr>
		<?php if ($_GET['print']!=1){?>
		  <td class="table1"></td>
			<td class="table1"></td>
		<?php }?>
	  <th align="center" class="table1"><?php echo $_smarty_tpl->getVariable('l_partyName')->value;?>
</th>
	</tr>
  <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['name'] = "sec";
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'] = is_array($_loop=$_smarty_tpl->getVariable('i')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total']);
?>
  	<tr  onmouseover="this.className='linkover'" onmouseout="this.className='linkout'">
  		<?php if ($_GET['print']!=1){?>
	    	<td></td>
	  	  <td class="table2" align="center">
	  	  	<?php if ($_GET['print']!=1){?>
	  	      <a href="partyEdit.php?partyId=<?php echo $_smarty_tpl->getVariable('partyId')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']];?>
" class="link"><?php echo $_smarty_tpl->getVariable('l_edit')->value;?>
</a>
	  	    <?php }else{ ?>
	  	      &nbsp;
	  	    <?php }?>
	  	  </td>
	    <?php }?>
    	<td class="table2"><?php echo $_smarty_tpl->getVariable('partyName')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']];?>
</td>
    </tr>
  <?php endfor; endif; ?>
<?php }?>
</table>
</form>
<?php if ($_GET['print']!=1){?>
  <?php $_template = new Smarty_Internal_Template("footer.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }?>
